package com.dragonwu.stock.feign;

import com.dragonwu.stock.config.FiegnConfig;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * @author DragonWu
 * @date 2022-09-29 17:41
 **/
// 添加configuration指定配置类，局部配置类一定要注释掉@Configuratin注解不然会变成全局配置
@FeignClient(name="test-service",path = "/stock",configuration = FiegnConfig.class)
public interface StockFeignService {

    @RequestLine("GET /test01/{s}")
    String test01(@Param("s") String s) throws Exception;

//    @GetMapping("/test01/{s}")
//    String test01(@PathVariable("s") String s) throws Exception;
}

